Skip to content

fix(core): Fix broken e2e test after master merge - #4399

Merged
michaelbromley merged 5 commits into
minorfrom
fix/search-plugin-e2e-merge-breakage
Feb 23, 2026
Merged

fix(core): Fix broken e2e test after master merge#4399
michaelbromley merged 5 commits into
minorfrom
fix/search-plugin-e2e-merge-breakage

Conversation

@michaelbromley

@michaelbromley michaelbromley commented Feb 23, 2026

Copy link
Copy Markdown
Member

Summary

  • The auto-merge of master into minor caused semantic conflicts in two e2e test files
  • The multi-channel productInStock cache test blocks (added on minor) still referenced old-style GraphQL constants (CREATE_CHANNEL, CREATE_PRODUCT, REINDEX, etc.) that were removed when master migrated to gql.tada document imports
  • Git merged cleanly because the test blocks were in new describe sections, but at runtime the old constants are undefined, causing ReferenceError: CREATE_CHANNEL is not defined
  • Updated both test files to use the gql.tada document imports consistent with the rest of each file:
    • packages/core/e2e/default-search-plugin.e2e-spec.ts
    • packages/elasticsearch-plugin/e2e/elasticsearch-plugin.e2e-spec.ts

Test plan

  • All 12 e2e matrix jobs (sqljs/postgres/mysql/mariadb x Node 20/22/24) should pass
  • default-search-plugin.e2e-spec.ts multi-channel productInStock cache tests should run without ReferenceError
  • elasticsearch-plugin.e2e-spec.ts multi-channel productInStock cache tests should run without ReferenceError
  • Note: elasticsearch-plugin-uuid tests have a pre-existing ES Content-Type 406 error unrelated to this change

The multi-channel productInStock cache test block was using old-style
GraphQL constants (CREATE_CHANNEL, CREATE_PRODUCT, etc.) that were
removed when master migrated to gql.tada document imports. The auto-merge
didn't detect this semantic conflict since the test was in a new describe
block touching different lines.
@vercel

vercel Bot commented Feb 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vendure-storybook Ready Ready Preview, Comment Feb 23, 2026 8:08pm

Request Review

@coderabbitai

coderabbitai Bot commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/search-plugin-e2e-merge-breakage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Fix admonition syntax in PasswordHashingStrategy JSDoc (:::info Config
→ :::info[Config]) and remove backticks from inline JSDoc comments in
PageActionBarRight props that break MDX template literal parsing.
The ES client was upgraded to 9.1.0 but only the sqljs e2e job was
updated to match. The postgres, mysql and mariadb jobs still used ES
7.1.1 which rejects the v9 Content-Type header with a 406 error.
@michaelbromley
michaelbromley merged commit aa83849 into minor Feb 23, 2026
22 checks passed
@michaelbromley
michaelbromley deleted the fix/search-plugin-e2e-merge-breakage branch February 23, 2026 20:37
@vendure-ci-automation-bot vendure-ci-automation-bot Bot locked and limited conversation to collaborators Feb 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant